package cn.sfrog.project.biz.admin.service;

import cn.sfrog.project.biz.admin.domain.BizUserWithdrawRecord;
import cn.sfrog.project.biz.admin.domain.vo.BizUserWithdrawRecordFormVO;
import cn.sfrog.project.biz.admin.domain.vo.BizUserWithdrawRecordQueryVO;
import cn.sfrog.project.biz.admin.domain.vo.BizUserWithdrawRecordVO;
import cn.sfrog.project.biz.web.vo.account.AppUserApplyWithdrawFormVO;
import cn.sfrog.system.domain.vo.BizAuditVO;
import cn.sfrog.system.domain.vo.BizStatusChangeVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 用户提现记录Service接口
 */
public interface IBizUserWithdrawRecordService extends IService<BizUserWithdrawRecord> {
    /**
     * 查询用户提现记录
     *
     * @param id 用户提现记录主键
     * @return 用户提现记录
     */
    public BizUserWithdrawRecordVO selectBizUserWithdrawRecordById(Long id);

    /**
     * 查询用户提现记录列表
     *
     * @param query 用户提现记录
     * @return 用户提现记录集合
     */
    public List<BizUserWithdrawRecordVO> selectBizUserWithdrawRecordList(BizUserWithdrawRecordQueryVO query);

    /**
     * 新增用户提现记录
     *
     * @param form 用户提现记录
     * @return 结果
     */
    public boolean insertBizUserWithdrawRecord(BizUserWithdrawRecordFormVO form);

    /**
     * 修改用户提现记录
     *
     * @param form 用户提现记录
     * @return 结果
     */
    public boolean updateBizUserWithdrawRecord(BizUserWithdrawRecordFormVO form);

    /**
     * 批量删除用户提现记录
     *
     * @param ids 需要删除的用户提现记录主键集合
     * @return 结果
     */
    public boolean deleteBizUserWithdrawRecordByIds(Long[] ids);

    /**
     * 更改状态
     *
     * @param vo 更改状态表单
     * @return 结果
     */
    boolean changeStatus(BizStatusChangeVO vo);

    /**
     * 审核
     * @param auditVO
     * @return
     */
    int audit(BizAuditVO auditVO);

    /**
     * APP-用户申请提现
     * @param form
     * @return
     */
    Boolean applyWithdraw(AppUserApplyWithdrawFormVO form);
}
